package cn.lili.modules.order.order.mapper;

import cn.lili.modules.order.order.entity.dos.RankingActivityConfig;
import cn.lili.modules.order.order.entity.dto.RankingActivityConfigDTO;
import cn.lili.modules.order.order.entity.vo.RankingActivityConfigVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 活动配置列表 Mapper 接口
 * </p>
 *
 * @author zhushiqing
 * @since 2023-12-21
 */
public interface RankingActivityConfigMapper extends BaseMapper<RankingActivityConfig> {

    /**
     * 获取活动列表
     * @param page
     * @return
     */
    Page<RankingActivityConfigVO> getRankingActivityConfig(Page<RankingActivityConfigVO> page, @Param("dto") RankingActivityConfigDTO dto);


    RankingActivityConfigVO getCurrentRankingActivityConfig(Integer showFlag);

    int selectCountRepeatActivityDate(@Param("startTime") String startTime, @Param("endTime") String endTime);

  List<RankingActivityConfigVO> selectActivitypeopleNumByActivityIds(@Param("activityIds") List<String> activitys);
  List<RankingActivityConfigVO>  selectActivitytotalScoreByActivityIds(@Param("activityIds") List<String> activitys);
}
